package com.wtb.pub;

import java.io.IOException;
import java.util.HashMap;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.wtb.dao.QqDao;
import com.wtb.dao.RrDao;
import com.wtb.dao.impl.QqDaoImpl;
import com.wtb.dao.impl.RrDaoImpl;

@SuppressWarnings("serial")
public class WtbBaseServlet extends HttpServlet {
	protected HttpSession session = null;
	protected QqDao qqDao = null;
	protected RrDao rrDao = null;
	protected HashMap<String, Object> lastMap;
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doPost(request,response);
	}

	@SuppressWarnings("unchecked")
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		session = request.getSession();
		lastMap = (HashMap<String, Object>) session.getAttribute("lastMap");
		qqDao = new QqDaoImpl();
		rrDao = new RrDaoImpl();
	}

}
